package cn.fanqinghong.ymcc.constants;

import cn.fanqinghong.ymcc.util.AssertUtil;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * FAN
 * 2022/7/17  14:56
 */
@Data
public class RegisterDto {

    @Pattern(regexp = AssertUtil.phoneReg,message = "手机号不合法")
    private String mobile;
    @Size(min = 6 ,max = 12,message = "密码长度在6-12位")
    private String password;
    @NotEmpty(message = "图片验证码不为空")
    private String imageCode;
    @NotEmpty(message = "短信验证码不为空")
    private String smsCode;
    private String imageCodeKey;
    private Integer regChannel;
}
